package com.fable.common.utils;
import com.fable.common.enums.BusiErrCode;

import java.io.Serializable;

public class BizResult<T> implements Serializable {

    private boolean success;
    private BusiErrCode busiErrCode;
    private T data;

    public BizResult() {
        this.success = true;
    }

    public BusiErrCode getBusiErrCode() {
        return busiErrCode;
    }

    public void setBusiErrCode(BusiErrCode busiErrCode) {
        this.busiErrCode = busiErrCode;
        this.success = false;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isSuccess() {
        return success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
